<?php
	class TestUnitModel extends KumomadoWebModel {
		public function TestObject() {
			date_default_timezone_set('Asia/Taipei');
			$test = new TestUnitUserObject();
			$test->name = 'Tester';
			$test->sex = 0;
			$test->nick = 'NoError';
			$test->birth = date('Y-m-d');
			$test->insert();
			echo $test->getSQL().'<br />';
			$test->name = 'Tester2';
			$test->where('id', $test->id);
			$test->insert();
			echo $test->getSQL().'<br />';
			$test->reset();
			$test->where('id', 1);
			$test->delete();
			echo $test->getSQL().'<br />';
			echo $test->count().'<br />';
			echo $test->getSQL().'<br />';
			alex($test->getById(2));
			echo $test->getSQL().'<br />';
		}
	}
?>